package com.boho.system.action;


             
/**
 * 
 *
 * @File name:  AddTSysRoleAction.java   添加【系统角色信息:T_ROLE】
 * @Create on:  2010-05-10 11:27:218
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        

            
import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.po.DynaBeanMap;

import com.boho.system.service.RoleService;




public class CheckTSysRoleByUpdateAction extends ActionImp {
	@Override
	protected void doException(ActionContext atx, Exception ex) {
	}
	@SuppressWarnings("unchecked")
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		String rolename = atx.getStringValue("ROLE_NAME").trim();
		Integer roleid = atx.getIntegerValue("ROLE_ID", 0);
		DynaBeanMap dbm = RoleService.checkRoleIsExistByUpdate(atx, rolename, roleid);
		atx.setObjValue("T_ROLE", dbm);
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		return 1;
	}
}
